<!-- Student Home -->
<div class="widfats">
    <div class="widget" id="widget_basic">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Personal Information'); ?></h3>
        <div class="content">
            <?php //debug($student); ?>
            <div class="table">
            <table class="two">
                <!-- Personal Information -->
                <tr>
                    <td class="title" colspan="4"><?php __('Basic Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Student Name'); ?></td>
                    <td class="value"><?php e($student['Student']['name']); ?></td>
                    <td class="key"><?php __('Student Gender'); ?></td>
                    <td class="value"><?php e($student['Student']['gender']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Student Birthday'); ?></td>
                    <td class="value"><?php e($student['Student']['birthday']); ?></td>
                    <td class="key"><?php __('Student Minority'); ?></td>
                    <td class="value"><?php e($student['StudentMinority']['name']); ?></td>
                </tr>
                 <tr>
                    <td class="key"><?php __('Student Province'); ?></td>
                    <td class="value"><?php e($student['StudentProvince']['name']); ?></td>
                    <td class="key"><?php __('Student Political'); ?></td>
                    <td class="value"><?php e($student['Student']['political']); ?></td>
                </tr>
                <!-- Registration information -->
                <tr>
                    <td class="title" colspan="4"><?php __('Registration Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Student Number'); ?></td>
                    <td class="value"><?php e($student['Student']['number']); ?></td>
                    <td class="key"><?php __('Student Class'); ?></td>
                    <td class="value"><?php e($student['Student']['class']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Student Academic'); ?></td>
                    <td class="value"><?php e($student['Student']['academic']); ?></td>
                    <td class="key"><?php __('Student Degree'); ?></td>
                    <td class="value"><?php e($student['Student']['degree']); ?></td>
                </tr>
                <!-- Contanct Information -->
                <tr>
                    <td class="title" colspan="4"><?php __('Contact Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Student Phone'); ?></td>
                    <td class="value"><?php e($student['Student']['phone']); ?></td>
                    <td class="key"><?php __('Student Email'); ?></td>
                    <td class="value"><?php e($student['Student']['email']); ?></td>
                </tr>
            </table>
            </div>
        </div>
    </div>
    <div class="widget" id="widget_campus">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Student Resume'); ?></h3>
        <div class="content">
            <?php if(isset($student['StudentResume']['id'])): ?>
            <div class="table">
            <table class="one">
                <!-- Resume Information -->
                <tr>
                    <td class="title" colspan="4"><?php __('Resume Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Resume Intention'); ?></td>
                    <td class="value"><?php e($student['StudentResume']['intention']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Resume Education'); ?></td>
                    <td class="value"><?php e($student['StudentResume']['education']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Resume Award'); ?></td>
                    <td class="value"><?php e($student['StudentResume']['awards']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Resume Abilities'); ?></td>
                    <td class="value"><?php e($student['StudentResume']['ability']); ?></td>
                </tr>
            </table>
            </div>
            <?php else: ?>
                <p><?php __('No resume yet, go to the quick actions section to add one'); ?></p>
                <?php e($html->link(__('New StudentResume', true),
                    array('controller'=>'student_resumes', 'action' => 'add', $student['Student']['id']),
                    array('class' => 'button attention')));
                ?>
            <?php endif; ?>
        </div>
    </div>
</div>

<!-- Student home sidebar -->
<div class="sidebar">
    <div class="widget" id="widget_chat">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('My Job Applications'); ?></h3>
        <div class="content">
            <?php if(isset($student['StudentResume']['id'])): ?>
                <?php if($student['Student']['students_job_count'] > 0): ?>
                    <?php printf(__('You have %d job applications now', true), $student['Student']['students_job_count']); ?>
                    <?php e($html->link(
                        __('(View Detail)', true),
                        array('action'=>'job',$student['Student']['id']),
                        array(
                            'id'=>'link_view_applications',
                            'title'=>__('Click to view what are these jobs', true)
                        )
                    )); ?>
                <?php else: ?>
                    <p><?php __('No application, got to quick action section for recent jobs'); ?></p>
                <?php endif; ?>
            <?php else: ?>
                <p><?php __('No resume, no job application'); ?></p>
            <?php endif; ?>
        </div>
    </div>
    <div class="widget" id="quick_actions">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Quick Actions'); ?></h3>
        <div class="content">
            <div class="actions">
                <ul>
                    <li><?php e($html->link(__('Edit Student', true),
                        array('controller'=>'students', 'action' => 'edit', $student['Student']['id']),
                        array('class'=>'submit attention'))); ?></li>
                    <?php if(isset($student['StudentResume']['id'])): ?>
                    <li><?php e($html->link(__('Edit StudentResume', true),
                        array('controller'=>'student_resumes', 'action' => 'edit', $student['StudentResume']['id']),
                        array('class'=>'submit attention'))); ?></li>
                    <?php endif; ?>
                    <li><?php e($html->link(__('View Companies', true),
                        array('controller'=>'companies','action' => 'index'))); ?></li>
                    <li><?php e($html->link(__('View Jobs', true),
                        array('controller'=>'jobs','action' => 'index'))); ?></li>
                    <br class="clear"/><br class="clear"/>
                </ul>
            </div>
        </div>
    </div>
</div>
<br class="clear"/>
<?php //debug($student); ?>